package com.superbytecode.cloud.example.web.entity;

import com.superbytecode.cloud.example.web.enums.LevelEnum;
import lombok.Data;

import java.util.List;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.example.web.entity
 * @ClassName: User
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/10/22 16:48
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Data
public class Employee {
    /**
     * 雇员id
     */
    private Long id;
    /**
     * 雇员名字
     */
    private String name;
    /**
     * 级别-枚举 {@link LevelEnum}
     **/
    private Integer level;
    /**
     * 部门id
     */
    private Long deptId;

    // 性别-数据字典表（0-男，1-女）
    private Integer sex;

    public static Employee init(Long id, String name, Integer sex, Long deptId, Integer level) {
        Employee employee = new Employee();
        employee.setId(id);
        employee.setName(name);
        employee.setSex(sex);
        employee.setDeptId(deptId);
        employee.setLevel(level);
        return employee;
    }
}